package com.dgshanger.sanhxiaofeisc.mvp.model;

import com.dgshanger.sanhxiaofeisc.common.AppApi;
import com.dgshanger.sanhxiaofeisc.entity.BillEntity;
import com.dgshanger.sanhxiaofeisc.mvp.contract.BillDetailContract;
import com.xx.baseutilslibrary.network.rx.RxHelper;
import com.xx.baseutilslibrary.network.rx.RxHttpObserver;

/**
 * BillDetailModel
 * 沉迷学习不能自拔
 * Describe：
 * Created by 雷小星🍀 on 2018/5/9 17:57.
 */

public class BillDetailModel implements BillDetailContract.Model {
    @Override
    public void loadDetail(String log_id, RxHttpObserver<BillEntity> httpObserver) {
        AppApi.Api()
                .bill_detail(log_id)
                .compose(RxHelper.io_main())
                .subscribe(httpObserver);
    }
}
